/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lt.ntec.danblog.server.core;

import com.google.inject.Inject;
import com.google.inject.Provider;
import lt.ntec.danblog.server.core.model.User;

/**
 *
 * @author Tadas
 */
class UserProvider implements Provider<User> {
    private final UserManager userManager;
    
    @Inject
    public UserProvider(UserManager userManager){
        this.userManager = userManager;
    }

    @Override
    public User get() {
        return userManager.getCurrentUser();
    }

}
